package com.andkrup.easygame.events {
	import flash.events.Event;
	
	/**
	 * @author Andkrup
	 */
	public class ExternalModuleEvent extends Event {
		public static const MODULE_LOADED:String = "xmodule loaded";
		public static const MODULE_UNLOADED:String = "xmodule unloaded";
		public static const MODULE_ACTIVATED:String = "xmodule activated";
		public static const MODULE_NOT_ACTIVATED:String = "module not activated";
		public static const MODULE_DEACTIVATED:String = "xmodule deactivated";
		
		public var moduleName:String;

		public function ExternalModuleEvent(type:String, name:String, bubbles:Boolean = false, cancelable:Boolean = false) {
			super(type, bubbles, cancelable);
			moduleName = name;
		}
		public override function clone():Event{
			return new ExternalModuleEvent(type, moduleName, bubbles, cancelable);
		}
	}
}
